// 对象类型

function printPoint(point: { x: number, y: number, z?: number }) {
  console.info(point.x, point.y, point.z)
}

printPoint({ x: 10, y: 20 })

export { }